package com.usian.account.controller;

import com.usian.account.service.TbAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("account")
public class TbAccountController {
    @Autowired
    private TbAccountService tbAccountService;

    @RequestMapping("debit")//扣减金钱
    public void debit(String userId,int money){
        tbAccountService.debit(userId,money);
    }
}
